ps_4_0
dcl_constantbuffer cb12[13], immediateIndexed
dcl_sampler s6, mode_default
dcl_resource_texture2d (float,float,float,float) t6
dcl_input_ps linear v2.xyzw
dcl_input_ps linear v3.xyz
dcl_input_ps linear v5.xy
dcl_input_ps linear v7.xyzw
dcl_output o0.xyzw
dcl_temps 2
dp4 r0.x, v2.xyzw, v2.xyzw
rsq r0.x, r0.x
mul r0.xyz, r0.xxxx, v2.xyzx
dp3 r0.x, r0.xyzx, -cb12[12].xyzx
mad r0.y, -cb12[11].x, r0.x, cb12[11].y
mad r0.x, r0.x, r0.x, l(1.000000e+000)
log r0.y, |r0.y|
mul r0.y, r0.y, l(1.500000e+000)
exp r0.y, r0.y
div r0.x, r0.x, r0.y
mul r0.y, r0.x, cb12[11].z
mad_sat r0.x, -r0.x, cb12[11].z, l(1.000000e+000)
mov_sat r0.y, r0.y
mul r0.yzw, r0.yyyy, cb12[9].xxyz
mul r0.yzw, r0.yyzw, cb12[11].wwww
dp4 r1.xyz, v3.xyz, l(0.500000, 0.500000, 0.500000, 0.000000)
add r1.yzw, -r1.x, v3.xxyz
mad r1.xyz, r1.yzwy, l(0.740000, 0.600000, 0.600000, 0.000000), r1.x
mad r0.xyz, r1.xyzx, r0.x, r0.yzwy
add r1.xyz, -r0.xyzx, v7.xyzx
mad r0.xyz, v7.wwww, r1.xyzx, r0.xyzx
sample r1.xyzw, v5.xyxx, t6.xyzw, s6
add r0.w, r1.x, l(-5.000000e-001)
mad o0.xyz, r0.wwww, l(1.000000e-004, 1.000000e-004, 1.000000e-004, 0.000000e+000), r0.xyzx
mov_sat o0.w, v2.w
ret